package com.itmk.web.sys_banner.service.serviceImpl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itmk.web.sys_banner.entity.SysBanner;
import com.itmk.web.sys_banner.mapper.SysBannerMapper;
import com.itmk.web.sys_banner.service.SysBannerService;
import org.springframework.stereotype.Service;

/**
 * @author 山顶洞人郑某
 * @className SysBannerServiceImpl.java
 * @date 2023 12 05
 */
@Service
public class SysBannerServiceImpl  extends ServiceImpl<SysBannerMapper, SysBanner> implements SysBannerService {

    @Override
    public Integer maxId() {
        int id =  this.baseMapper.MaxId()+1;
        this.baseMapper.UpdateMaxId(id+1);
        return id;
    }
}
